package com.example.test.springdemo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "3.2.4 后台功能资源管理表")
public class AdminApiSource implements Serializable {
    @ApiModelProperty(value = "主键",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "资源名称",dataType = "String")
    private String name;

    @ApiModelProperty(value = "链接地址",dataType = "String")
    private String url;

    @ApiModelProperty(value = "关联菜单页面地址表",dataType = "Long")
    private Long adminPageId;

    @ApiModelProperty(value = "排序",dataType = "Integer")
    private Integer sorted;

    @ApiModelProperty(value = "备注",dataType = "String")
    private String remark;

    @ApiModelProperty(value = "授权(如：sys:user:create)",dataType = "String")
    private String permission;

    @ApiModelProperty(value = "创建当前功能的用户",dataType = "String")
    private String gmtCreateUser;

    @ApiModelProperty(value = "修改当前功能的用户",dataType = "String")
    private String gmtModifyUser;

    @ApiModelProperty(value = "创建功能的时间",dataType = "Date")
    private Date gmtCreateTime;

    @ApiModelProperty(value = "修改功能的时间",dataType = "Date")
    private Date gmtModifyTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getAdminPageId() {
        return adminPageId;
    }

    public void setAdminPageId(Long adminPageId) {
        this.adminPageId = adminPageId;
    }

    public Integer getSorted() {
        return sorted;
    }

    public void setSorted(Integer sorted) {
        this.sorted = sorted;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getGmtCreateUser() {
        return gmtCreateUser;
    }

    public void setGmtCreateUser(String gmtCreateUser) {
        this.gmtCreateUser = gmtCreateUser;
    }

    public String getGmtModifyUser() {
        return gmtModifyUser;
    }

    public void setGmtModifyUser(String gmtModifyUser) {
        this.gmtModifyUser = gmtModifyUser;
    }

    public Date getGmtCreateTime() {
        return gmtCreateTime;
    }

    public void setGmtCreateTime(Date gmtCreateTime) {
        this.gmtCreateTime = gmtCreateTime;
    }

    public Date getGmtModifyTime() {
        return gmtModifyTime;
    }

    public void setGmtModifyTime(Date gmtModifyTime) {
        this.gmtModifyTime = gmtModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", url=").append(url);
        sb.append(", adminPageId=").append(adminPageId);
        sb.append(", sorted=").append(sorted);
        sb.append(", remark=").append(remark);
        sb.append(", permission=").append(permission);
        sb.append(", gmtCreateUser=").append(gmtCreateUser);
        sb.append(", gmtModifyUser=").append(gmtModifyUser);
        sb.append(", gmtCreateTime=").append(gmtCreateTime);
        sb.append(", gmtModifyTime=").append(gmtModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
